"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var database_1 = __importDefault(require("../libs/database"));
var sequelize_1 = __importDefault(require("sequelize"));
var User = database_1.default.define('user', {
    username: {
        type: sequelize_1.default.STRING,
        field: 'username' // Will result in an attribute that is firstName when user facing but first_name in the database
    },
    password: {
        type: sequelize_1.default.STRING
    },
    uId: {
        type: sequelize_1.default.STRING
    }
}, {
    freezeTableName: true // Model 对应的表名将与model名相同
});
User.sync();
// Orders.sync({force: true})
exports.default = User;
